package com.heima.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.model.wemedia.pojo.WmNewsMaterial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by ZYJ on 2021/5/26 23:43
 */
@Mapper
public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {

    public void saveRelations(@Param("wmMaterialIds")List<Integer> materialIds,
                              @Param("newsId") Integer newsId,
                              @Param("type")Short type);

}
